# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=rsstail
pkgver=2.1
pkgrel=1
pkgdesc="tail for rss feeds"
url="https://www.vanheusden.com/rsstail/"
arch="all"
license="GPL-2.0-only"
makedepends="libmrss-dev curl-dev"
checkdepends="cppcheck"
subpackages="$pkgname-doc"
source="https://www.vanheusden.com/$pkgname/$pkgname-$pkgver.tgz
	fix-build.patch
	makefile-suppor-install-destdir-path.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	return 0
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/usr/bin
	make DESTDIR=$pkgdir install
}

sha512sums="61eec722e4c519b5ccebae93849f3f88810a1ff2e70dc311ad55fd15b7751d3d4dedf65e1c0ff875bee58df998f48aba7337a20bcebd2121dcead4ab1ac7ff1f  rsstail-2.1.tgz
997088b1e608b2c341f5e090e7cf39db8140919812eb7238daa5e908300c84e2dd39f4b4b4bdd3b4e15a08c26380ccc92f68fec62a9bb2c63a1e8522d61ea89e  fix-build.patch
a1bb0e08203e9db22e240f1b63019f447d7dc1cae729ce0f64c47df71ab2f7b1ad4af5faa04df2223ebb7bd8a5ff0f4525a271754ec53696a7ea5f15aee67a5a  makefile-suppor-install-destdir-path.patch"
